package com.satalyst.webtest.ui;

import org.jdesktop.application.SingleFrameApplication;
import org.pushingpixels.substance.api.skin.SubstanceBusinessBlueSteelLookAndFeel;

import javax.swing.*;
import java.awt.*;

/**
 * @author Aidan Morgan
 */
public class Main extends SingleFrameApplication {
    private JFrame mainFrame;

    @Override
    protected void startup() {
        getMainFrame().setTitle("BasicSingleFrameApp");
        JLabel label = new JLabel("Hello, world!");
        label.setFont(new Font("SansSerif", Font.PLAIN, 22));
        show(label);
    }

    public static void main(final String[] args) {
        SwingUtilities.invokeLater(new Runnable() {
            @Override
            public void run() {
                try {
                    UIManager.setLookAndFeel(new SubstanceBusinessBlueSteelLookAndFeel());
                } catch (UnsupportedLookAndFeelException ignored) {
                }

                launch(Main.class, args);
            }
        });
    }
}
